package user;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 沈明月
 * Date: 2023-06-30
 * Time: 9:44
 */
public abstract class User {
    protected String name;
    public IOperation[] iOperations;//只是定义，未初始化大小

    public User(String name){
        this.name = name;
    }
    public abstract int menu();

    public void doOperation(int choice, BookList bookList){
        iOperations[choice].work(bookList);
    }
}
